#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2021/7/28 11:50
# @Author  : ldh
from basic.UIParent import UIParent
from test.cases.agx.AGXLogin import AGXLogin
from commen.page.agx.AGXMyPage import AGXMyPage
from commen.page.agx.AGXDataSecretaryPage import AGXDataSecretaryPage
from basic.utils.asserts import asserts
from time import sleep

class AGXDataSecretary(UIParent):

    @classmethod
    def test_agxDataSecretary(cls):
        '''数据秘书校验'''
        #判断是否登录
        AGXLogin.test_agxLoginByPwd()
        #AGXMyPage.openMyPage()
        AGXDataSecretaryPage.openDataSecretaryPage()
        asserts.equal(AGXDataSecretaryPage.getPageView(),True,"数据秘书界面校验")
        sleep(3)
        AGXDataSecretaryPage.openAuthData()
